<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{ido4WebBoardHeaderBean.id}"/>
		<f:event type="preRenderView" listener="#{ido4WebBoardHeaderBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Ido 4Web Board Header"/>

	<ui:define name="header">
		Ido 4Web Board Header
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty ido4WebBoardHeaderBean.id}">
				Edit existing Ido 4Web Board Header
			</c:when>
			<c:otherwise>
				Create a new Ido 4Web Board Header
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhNo" value="Wbh No:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhNo" required="true" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhNo}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4SysUser" value="Ido 4Sys User:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{ido4SysUserBean.converter}" id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4SysUser" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.ido4SysUser}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{ido4SysUserBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4SysUser" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhHeaderText" value="Wbh Header Text:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhHeaderText" maxLength="500" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhHeaderText}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhHeaderText" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhDescr" value="Wbh Descr:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhDescr" maxLength="1000" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhDescr}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedDtm" value="Wbh Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedDtm" maxLength="19" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhCreatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedByName" value="Wbh Created By Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedByName" maxLength="100" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhCreatedByName}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhCreatedByName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderRowStatus" value="Row Status:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderRowStatus" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.rowStatus}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderRowStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalReply" value="Wbh Total Reply:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalReply" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhTotalReply}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalReply" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalView" value="Wbh Total View:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalView" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhTotalView}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhTotalView" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyDtm" value="Wbh Last Reply Dtm:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyDtm" maxLength="19" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhLastReplyDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByUserNo" value="Wbh Last Reply By User No:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByUserNo" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhLastReplyByUserNo}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByUserNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByName" value="Wbh Last Reply By Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByName" maxLength="100" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhLastReplyByName}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhLastReplyByName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhStatusIsPinPost" value="Wbh Status Is Pin Post:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhStatusIsPinPost" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.wbhStatusIsPinPost}"/>
					<h:message for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderWbhStatusIsPinPost" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4WebBoardLines" value="Ido 4Web Board Lines:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader.ido4WebBoardLines}"/>
					<h:dataTable id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4WebBoardLines" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Ido 4Sys User"/>
							</f:facet>
							<h:link outcome="/ido4WebBoardLine/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemIdo4SysUser" value="#{forgeview:display(_item.ido4SysUser)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{ido4SysUserBean.converter}" id="ido4WebBoardLineBeanAddIdo4SysUser" value="#{ido4WebBoardLineBean.add.ido4SysUser}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{ido4SysUserBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="ido4WebBoardLineBeanAddIdo4SysUser" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Wb Line Created Dtm"/>
							</f:facet>
							<h:link outcome="/ido4WebBoardLine/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemWbLineCreatedDtm" value="#{_item.wbLineCreatedDtm}">
									<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="ido4WebBoardLineBeanAddWbLineCreatedDtm" maxLength="19" value="#{ido4WebBoardLineBean.add.wbLineCreatedDtm}">
									<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
								</h:inputText>
								<h:message for="ido4WebBoardLineBeanAddWbLineCreatedDtm" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Wb Line Created By Name"/>
							</f:facet>
							<h:link outcome="/ido4WebBoardLine/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemWbLineCreatedByName" value="#{_item.wbLineCreatedByName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="ido4WebBoardLineBeanAddWbLineCreatedByName" maxLength="100" value="#{ido4WebBoardLineBean.add.wbLineCreatedByName}"/>
								<h:message for="ido4WebBoardLineBeanAddWbLineCreatedByName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Wb Line Reply Text"/>
							</f:facet>
							<h:link outcome="/ido4WebBoardLine/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemWbLineReplyText" value="#{_item.wbLineReplyText}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="ido4WebBoardLineBeanAddWbLineReplyText" maxLength="1000" value="#{ido4WebBoardLineBean.add.wbLineReplyText}"/>
								<h:message for="ido4WebBoardLineBeanAddWbLineReplyText" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Row Status"/>
							</f:facet>
							<h:link outcome="/ido4WebBoardLine/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRowStatus" value="#{_item.rowStatus}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="ido4WebBoardLineBeanAddRowStatus" value="#{ido4WebBoardLineBean.add.rowStatus}"/>
								<h:message for="ido4WebBoardLineBeanAddRowStatus" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(ido4WebBoardLineBean.added)}" id="ido4WebBoardHeaderBeanIdo4WebBoardHeaderIdo4WebBoardLinesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{ido4WebBoardLineBean.add.ido4WebBoardHeader}" value="#{ido4WebBoardHeaderBean.ido4WebBoardHeader}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{ido4WebBoardHeaderBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty ido4WebBoardHeaderBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{ido4WebBoardHeaderBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{ido4WebBoardHeaderBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>